export const storage = new Proxy({} as any, {
    get: function (target, propKey: string) {
        if (propKey == 'setItem') return uni.setStorageSync;
        if (propKey == 'getItem') return uni.getStorageSync;
        return uni.getStorageSync(propKey)
    },
    set: function (target, propKey: string, value) {

        uni.setStorageSync(propKey, value.toString())
        return value
    }
});

